package com.roncoo.course.service.impl;

import com.roncoo.course.entity.CourseIntroduce;
import com.roncoo.course.dao.CourseIntroduceMapper;
import com.roncoo.course.service.CourseIntroduceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wdf
 * @since 2021-04-07
 */
@Service
public class CourseIntroduceServiceImpl extends ServiceImpl<CourseIntroduceMapper, CourseIntroduce> implements CourseIntroduceService {

    @Resource
    private CourseIntroduceMapper courseIntroduceMapper;
    @Override
    public Integer addCourseIntroduce(CourseIntroduce courseIntroduce) {
        Integer introduce =courseIntroduceMapper.addCourseIntroduce(courseIntroduce);
        Integer id = courseIntroduce.getId();
        System.out.println(id);
        return id;
    }
}
